package com.neuedu.His02.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

// 表名：检查/检验/处置申请模板表
public class CheckTemplate {
    private Integer ID;// ID 自增长类型
    private String Name;// 名称
    private Integer UserID;// 医生 ID 指向 User (ID)
    /**
     * OperatorID这个变量用于比对UserID
     * 防止非模创建者对模板操作（删，改）
     * 该变量不会存储到数据库中
     */
    private Integer OperatorID;// 操作员ID

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date CreationTime;// 创建时间
    private String Scope;// 使用范围 全院/科室/个人
    private Integer RecordType;// 记录类型 1-检查 2-检验 3-处置
    private Integer DelMark;// 删除标记 1-正常 0-已删除

    public Integer getID() {
        return ID;
    }

    public void setID(Integer ID) {
        this.ID = ID;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public Integer getUserID() {
        return UserID;
    }

    public void setUserID(Integer userID) {
        UserID = userID;
    }

    public Date getCreationTime() {
        return CreationTime;
    }

    public void setCreationTime(Date creationTime) {
        CreationTime = creationTime;
    }

    public String getScope() {
        return Scope;
    }

    public void setScope(String scope) {
        Scope = scope;
    }

    public Integer getRecordType() {
        return RecordType;
    }

    public void setRecordType(Integer recordType) {
        RecordType = recordType;
    }

    public Integer getDelMark() {
        return DelMark;
    }

    public void setDelMark(Integer delMark) {
        DelMark = delMark;
    }

    public Integer getOperatorID(){
        return OperatorID;
    }

    public void setOperatorID(Integer operatorID) {
        OperatorID = operatorID;
    }

    @Override
    public String toString() {
        return "CheckTemplate{" +
                "ID=" + ID +
                ", Name='" + Name + '\'' +
                ", UserID=" + UserID +
                ", CreationTime=" + CreationTime +
                ", Scope='" + Scope + '\'' +
                ", RecordType=" + RecordType +
                ", DelMark=" + DelMark +
                ", OperatorID=" + OperatorID +
                '}';
    }
}
